﻿using System.ComponentModel.DataAnnotations;

namespace BookStore.Models
{
    public class Book
    {
        [Key]
        public int Id { get; set; }
        public string Title { get ; set; }
        
        public string Genre { get ; set; }

        public string Author { get ; set; }

        public int Pages { get ; set; }

        public decimal RentCost { get ; set; }

        public bool IsAvailable { get ; set; }

        public int StoreId { get; set; }

        public virtual Store Store { get; set; }       
    }
}
